package com.wh.wisdomsite.xbox.server.listener;


import com.wh.wisdomsite.xbox.core.event.AfterDoServiceEvent;
import com.wh.wisdomsite.xbox.core.event.XboxEventListener;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/***
 *  方法调用之后的监听器
 * @Package com.wh.wisdomsite.xbox.entity.client
 * @author 谢泽鹏
 * @date 2016年11月07日 下午15:10
 * @Copyright 个人版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 * @version V1.0
 */
public class SamplePostInitializeEventListener implements XboxEventListener<AfterDoServiceEvent> {

    private static final Log logger = LogFactory.getLog(SamplePostInitializeEventListener.class);


    @Override
    public void handleEvent(AfterDoServiceEvent event) {
        /**
        System.out.println();
        System.out.println();
        System.out.println();
        System.out.println("AfterDoServiceEvent-->>event.getXboxRequestContext().getIp(): " + event.getXboxRequestContext().getIp());
        System.out.println("AfterDoServiceEvent-->>event.getXboxRequestContext().getXboxContext(): " + event.getXboxRequestContext().getXboxContext());
        System.out.println("AfterDoServiceEvent-->>event.getXboxRequestContext().getXboxContext().getSessionManager(): " + event.getXboxRequestContext().getXboxContext().getSessionManager());
        logger.info("AfterDoServiceEvent.....SamplePreDoServiceEventListener...");
        **/
    }

    @Override
    public int getOrder() {
        return 0;
    }



}

